# 猜数字游戏

import random

target = random.randrange(1, 100, 1)

x = input("请输入1个1~100的数字")
try:
    n = int(x)
    if n == target:
        print("你赢了")
    elif n < target:
        print("你猜的的太小了")
    else:
        print("你猜的的太大了")
except:
    print("请输入整数")
